(function (_super) {
    function BuySuccess(data) {
        BuySuccess.super(this);

        this.init(data);
    }
    Laya.class(BuySuccess, "Alert.BuySuccess", _super);
    var _proto = BuySuccess.prototype;
    _proto.destroy = function () {
        _super.prototype.destroy.call(this, true);
    }

    _proto.init = function (data) {
        this.itemPic.skin = PROPS_PATH + data.itemId + ".png";
        this.count.text = data.count + "个";
        this.itemName.text = data.itemName;

        this.btnConfirm.on(Laya.Event.CLICK, this, this.destroy);
    }
})(ui.Alert.SuccessUI);